<?php if(!defined("HDPHP_PATH"))exit;C("SHOW_NOTICE",FALSE);?><!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <script type='text/javascript' src='http://localhost/hdphp-xuexi/hdphp/hdphp/Extend/Org/Jquery/jquery-1.8.2.min.js'></script>

</head>
<body>
<div id="blog">正在加载数据 ...</div>
<script>
    function loadBlog(){
        $.post('index.php?m=Index&c=Index&a=getList',function(data){
            var s ='<ul>';
            $(data).each(function(i){
                s+="<li>"+data[i].title+"</li>";
            })
            s+="</ul>";
            $("#blog").html(s);
        },'json');
    }
    setTimeout(function(){loadBlog()},2000);
</script>
</body>
</html>